Micron Document
Deavmi's coding shack

Node / mirrors / glog / commits / a69795b

Commit a69795bd9850ebcaf201a1f8bb9ddc18a1e0e94d


Parents : aba0d27
Author : Tristan Brice Velloza Kildaire <deavmi@redxen.eu>
Date : 2026-05-01T14:44:13+02:00

donhe

Changes

1 files changed, 3 insertions(+), 5 deletions(-)


Diff

diff --git a/std/appenders/structured/core.go b/std/appenders/structured/core.go
index 97f2326..86060dc 100644
--- a/std/appenders/structured/core.go
+++ b/std/appenders/structured/core.go
@@ -88,10 +88,8 @@ func (sa StructuredAppender) Do(lr record.LogRecord) error {
newStuff[stringedKey] = sa.procValue(v)
}
+ // now encode the string-i-fied key
+ // map into JSON
encoder := json.NewEncoder(sa.w)
-
- e := encoder.Encode(newStuff)
- // fmt.Printf("%v", e)
-
- return e
+ return encoder.Encode(newStuff)
}

Served by rngit 1.5.0 - Generated in 0.08s